portableSql
Quarter Portable SQL Function
Syntax
Quarter as N (DateTime as D)
Quarter as N (DateTime as T)
Arguments
- DateTimeDate Time
A field or value.
Returns
- resultNumeric
Returns the quarter number from a date or datetime value.
Description
Extract the quarter number from a date or datetime value.
Discussion
The Quarter function computes the quarter number from a date or datetime value.
Quarter() function executed on the Northwind Access database
SELECT FIRST 1 CurrentDateTime() AS Now, Quarter(CurrentDateTime()) AS Expr1 FROM Orders =10/10/2019 12:45:57 00 pm|4